inspector: Don't set style classes on app widgets
authorMatthias Clasen <mclasen@redhat.com>
Mon, 15 Jun 2020 15:21:20 +0000 (11:21 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 15 Jun 2020 15:22:32 +0000 (11:22 -0400)
Due to a mixup, the inspector was setting .dim-label on
widgets that get unmapped, instead of the labels representing
them in the object tree.

gtk/inspector/object-tree.c

index 60d96081f46d79a634e24ef5812218361acf7953..add6da624c960d4b8e18126c9b5a74c0cfe428df 100644 (file)
@@ -732,14 +732,14 @@ static void
 widget_mapped (GtkWidget *widget,
                GtkWidget *label)
 {
-  gtk_widget_remove_css_class (widget, "dim-label");
+  gtk_widget_remove_css_class (label, "dim-label");
 }
 
 static void
 widget_unmapped (GtkWidget *widget,
                  GtkWidget *label)
 {
-  gtk_widget_add_css_class (widget, "dim-label");
+  gtk_widget_add_css_class (label, "dim-label");
 }
 
 static gboolean